package com.xhh.model.user.dtos;

import lombok.Data;

/**
 * @author:xhh
 * @email:3231954428@qq.com
 * @desc:
 * @datatime:2024/5/17 14:51
 */
@Data
public class AuthDto {

    /**
     * 用户id
     */
    private Integer id;

    /**
     *
     */
    private String msg;

    /**
     * 当前页
     */
    private Integer page;

    /**
     * 每页的容量
     */
    private Integer size;

    /**
     * 用户状态
     */
    private Integer status;

    public void checkParam() {
        if (this.page == null || this.page < 0) {
            setPage(1);
        }
        if (this.size == null || this.size < 0 || this.size > 100) {
            setSize(10);
        }
    }

}
